require('./countdown.less')
require('../../assets/css/index.less')
const count=document.querySelector('.count')
window.onload=()=>{
    const count=document.querySelector('.count')
    let time =3
    let timer=setInterval(()=>{
      if(time===1){
          clearInterval(timer)
          window.location.href='./map.html'
          count.innerHTML='GO'
          return
      }
      time--
      count.innerHTML=`${time}`
      skip.addEventListener('click',function(){
        location.href='./map.html'
      })
    },1000)
  
      
  }